import { Module } from '@nestjs/common';
import { ShaderController } from './shader.controller';
import { ShaderService } from './shader.service';
import { MongooseModule } from '@nestjs/mongoose';
import { JwtModule } from '@nestjs/jwt';
import { jwtConstants } from 'src/global-type';
import { SystemUserModule } from 'src/system-user/system-user.module';
import { shaderListSchema } from './shader.schema';

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: 'shader', collection: 'shader', schema: shaderListSchema }
    ]),
    JwtModule.register({
      secret: jwtConstants.secret,
      signOptions: { expiresIn: '12h' },
    }),
    SystemUserModule,
  ],
  controllers: [ShaderController],
  providers: [ShaderService],

})
export class ShaderModule { }
